package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 药房对接信息
 * </p>
 *
 * @author czg
 * @since 2020-03-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "药房对接信息")
public class PharmacyDocking implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:后台管理用户表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 药房名字
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 获取token地址
     */
    @Column(length = 100, comment = "获取token地址")
    private String getTokenUrl;

    /**
     * 获取targetDataSource地址
     */
    @Column(length = 100, comment = "获取targetDataSource地址")
    private String getTargetDataSourceUrl;

    /**
     * 获取颗粒药材信息地址
     */
    @Column(length = 100, comment = "获取颗粒药材信息地址")
    private String getKlDrugUrl;

    /**
     * 检查颗粒药材库存地址
     */
    @Column(length = 100, comment = "检查颗粒药材库存地址")
    private String checkKlDrugStockUrl;

    /**
     * 检查颗粒药材用量超出地址
     */
    @Column(length = 100, comment = "检查颗粒药材用量超出地址")
    private String checkKlDrugExcessUrl;

    /**
     * 处方接口地址
     */
    @Column(length = 100, comment = "提交处方接口地址")
    private String servicesUrl;

    /**
     * 对账地址
     */
    @Column(length = 100, comment = "对账结算接口地址")
    private String settlementUrl;

    /**
     * 处方回调接口地址
     */
    @Column(length = 100, comment = "处方回调接口地址")
    private String PresCallbackUrl;

    /**
     * 物流接口地址
     */
    @Column(length = 100, comment = "物流接口地址")
    private String expressUrl;

    /**
     * 物流接口地址
     */
    @Column(length = 100, comment = "取消处方接口地址")
    private String cancelUrl;

    /**
     * 药房分配的接口标识
     */
    @Column(length = 20, comment = "药房分配的接口标识,如医院id, 医院名称")
    private String mchId;

    /**
     * 药房分配的秘钥
     */
    @Column(length = 256, comment = "药房分配的秘钥")
    private String encryptyKey;

    /**
     * 加密数据秘钥
     */
    @Column(length = 100, comment = "加密数据秘钥")
    private String secretKey;

    /**
     * 状态
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "状态 1正常  -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @Column(comment = "更新时间")
    private LocalDateTime updateDate;

    /**
     * 查询处方状态地址
     */
    @Column(comment = "获取处方状态地址", length = 128)
    private String preStatusUrl;

    /**
     * 上传附件地址
     */
    @Column(comment = "获取附件地址", length = 128)
    private String uploadUrl;

    /**
     * 设置回调物流地址
     */
    @Column(comment = "设置回调物流地址", length = 128)
    private String setExpressUrl;
}
